import java.util.ArrayList;

import cupk.cars.*;
import cupk.cars.entities.EntityAudi;
import cupk.cars.entities.EntityBenz;
import cupk.cars.entities.EntityBmw;
import cupk.cars.entities.EntityTesla;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<Cars> carList = new ArrayList<Cars>();
        carList.add(new EntityBenz());
        carList.add(new EntityAudi());
        carList.add(new EntityBmw());
        carList.add(new EntityTesla());

        for (Cars currentCar : carList){
            System.out.println(currentCar.showCars());
        }
    }
}